import request from '@/utils/request'

// 注册接口
export const registerAPI = data => {
  return request.post('/api/reg', {
    username: data.username,
    password: data.userpwd,
    repassword: data.userpwds
  })
}

// 登录接口
export const loginAPI = data => {
  return request.post('/api/login', {
    username: data.username,
    password: data.userpwd
  })
}
